//get
async function ajaxGet(url, param) {
    let info = null;
    await axios.get(url, {params: param}).then(e => {
        info = e.data;
    })
    return info;
}

//post
async function ajaxPost(url, param) {
    let info = null;
    let obj = new URLSearchParams();
    for (field in param) {
        obj.append(field, param[field]);
    }
    await axios.post(url, obj).then(e => {
        info = e.data;
    })
    return info;
}

function $(id) {
    return document.getElementById(id);
}